<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style type="text/css">
        a, span {
            background: pink;
        }
        a:hover {
            color: red;
            text-decoration: none;
        }

    </style>
</head>
<body>
    <a href="https://www.baidu.com">baidu</a>
    <span>行内元素</span>
</body>
</html>